

export default {
    helperFnPromise (fn, options = {}) {
        return new Promise(((resolve, reject) => {
            wx[fn]({
                ...options,
                success: resolve,
                fail: reject,
            })
        }));
    }
}
